{{:ModuleInclude('public/header')}}

<!-- right content start  -->
<div class="content-right">
    <div class="content">
        <!-- form start -->
        <form class="am-form form-validation am-form-full-screen am-form-popup-sticky" action="{{:MyUrl('admin/subemail/save')}}" method="POST" request-type="ajax-reload" request-value="parent">
            <div class="am-form-group">
                <label>郵件地址<span class="am-form-group-label-tips-must">*</span></label>
                <input type="text" name="email"  data-validation-message="郵件地址不能為空" class="am-radius" {{if !empty($data['email'])}} value="{{$data.email}}"{{/if}} required />
            </div>
            <div class="am-form-group">
                <label>郵件主題<span class="am-form-group-label-tips-must">*</span></label>
                <input type="text" name="title"  data-validation-message="郵件主題不能為空" class="am-radius"  required />
            </div>
            <div class="item" data-key="web">
                <div class="am-form-group">
                    <label>郵件內容<span class="am-form-group-label-tips-must">*</span></label>
                    <textarea class="am-radius" name="email_content" id="editor-tag" data-validation-message="郵件內容不能為空"></textarea>
                </div>
            </div>

            <div class="am-form-popup-submit">
                <input type="hidden" name="id" {{if !empty($data['id'])}} value="{{$data.id}}"{{/if}} />
                <button type="button" class="am-btn am-btn-warning am-radius am-btn-xs am-margin-right-lg" data-am-modal-close>
                    <i class="am-icon-paint-brush"></i>
                    <span>{{:MyLang('cancel_title')}}</span>
                </button>
                <button type="submit" class="am-btn am-btn-primary am-radius am-btn-xs btn-loading-example" data-am-loading="{spinner: 'circle-o-notch', loadingText:'{{:MyLang('save_title')}}'}">
                    <i class="am-icon-save"></i>
                    <span>{{:MyLang('send_email')}}</span>
                </button>
            </div>
        </form>
        <!-- form end -->
    </div>
</div>
<!-- right content end  -->

<!-- footer start -->
{{:ModuleInclude('public/footer')}}
